package com.rzico.sbl.ui.mine

import com.rzico.sbl.R
import com.rzico.sbl.databinding.ActivitySettingBrandBinding
import com.rzico.sbl.ui.WebActivity
import com.xinnuo.common.extend.oneClick
import com.xinnuo.common.extend.startActivityEx
import com.xinnuo.common_ui.base.BaseActivity

class SettingBrandActivity : BaseActivity(R.layout.activity_setting_brand) {

    private val mBinding by lazy { ActivitySettingBrandBinding.bind(getRootView()) }

    override fun initData() {
        initTitle(title = "手机厂商")
    }

    override fun initListener() {
        mBinding
            .settingHuawei
            .oneClick {
                startActivityEx<WebActivity>("title" to "华为")
            }
        mBinding
            .settingXiaomi
            .oneClick {
                startActivityEx<WebActivity>("title" to "小米")
            }
        mBinding
            .settingVivo
            .oneClick {
                startActivityEx<WebActivity>("title" to "VIVO")
            }
        mBinding
            .settingOppo
            .oneClick {
                startActivityEx<WebActivity>("title" to "OPPO")
            }
    }

}